package io_zhuanhuan;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.Iterator;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/4 11:27
 * @description:
 */
public class Filetoarr {

  public static void main(String[] args) throws  Exception {
    BufferedReader br=new BufferedReader(new FileReader("list.txt"));
    ArrayList<String> arr=new ArrayList<String>();
String line=null;

while ((line=br.readLine())!=null)
{
 arr.add(line);
}


br.close();


    Iterator it=arr.iterator();
    while (it.hasNext())
    {
      System.out.println(it.next());
    }




  }

}
